//
//  HWAlltrideJiaoyiCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/11/20.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWAlltrideJiaoyiCell.h"

@implementation HWAlltrideJiaoyiCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.icoIamgeView.layer.cornerRadius = 6;
    self.icoIamgeView.layer.masksToBounds = YES;
    
    self.shanchudingdanBut.layer.cornerRadius = 12;
    self.shanchudingdanBut.layer.masksToBounds = YES;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setFrame:(CGRect)frame
{
    frame.size.height -= 10;
    
    [super setFrame:frame];
}



- (void)setDatamdoel:(HWPurchaseOrderModel *)datamdoel {
    
    _datamdoel = datamdoel;
    
    self.mioahsuJiaoyiLabel.text = [NSString stringWithFormat:@"%@",datamdoel.style];
    self.zhuataiLabel.text = [NSString stringWithFormat:@"%@",datamdoel.type];
    NSURL *url = [NSURL URLWithString:datamdoel.image];
    [self.icoIamgeView sd_setImageWithURL:url placeholderImage:nil];
    

    
    self.diyigenameLabel.text = [NSString stringWithFormat:@"%@",datamdoel.name];
    self.dieer2geLabel.text = [NSString stringWithFormat:@"%@",datamdoel.introduction];
    self.jiageLabel.text = [NSString stringWithFormat:@"￥%@",datamdoel.money];
}

@end
